package pers.cocoadel.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import pers.cocoadel.rule.MyRule;

/**
 * @author rwby
 */
@Configuration
public class LoadBalanceConfig
{
    @Bean
    public IRule rule()
    {
//        return new RandomRule();
        return new MyRule();
    }
}
